package com.woniuxy.dto.commonDto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 分页返回的泛型
 *
 * @param <T>
 */
@Data
public class BaseDto<T> {

    @ApiModelProperty("当前页")
    private Long indexPage;

    @ApiModelProperty("总页数")
    private Long pageCount;
    
    @ApiModelProperty(value = "一共有多少条数据")
    private Long total;


    @ApiModelProperty(value = "是否有上一页")
    private boolean hasPrevious;

    @ApiModelProperty(value = "是否有下一页")
    private boolean hasNext;

    @ApiModelProperty("集合")
    private List<T> list;
}
